package com.huangkailong.designpattern.decarator;

/**
 * 煎饼香肠装饰器
 *
 * @author huangkl
 * @since 1.0.0
 */
public class SausagePancakeDecorator extends PancakeDecorator {
    public SausagePancakeDecorator(Pancake pancake) {
        super(pancake);
    }

    @Override
    public String getMsg() {
        return super.getMsg() + "加香肠";
    }

    @Override
    public Double getPrice() {
        return super.getPrice() + 2.0;
    }
}
